package com.restkeeper.model;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @description 文本消息
 */
@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "xml")
public class WeChatMessage {

    /**
     * 接收方帐号（收到的OpenID）
     */
    @XmlElement(name = "ToUserName", required = true)
    private String ToUserName;
    /**
     * 开发者微信号
     */
    @XmlElement(name = "FromUserName", required = true)
    private String FromUserName;
    /**
     * 消息创建时间 （整型）
     */
    @XmlElement(name = "CreateTime", required = true)
    private long CreateTime;

    /**
     * 消息类型
     */
    @XmlElement(name = "MsgType", required = true)
    private String MsgType;

    /**
     * 位0x0001被标志时，星标刚收到的消息
     */
    @XmlElement(name = "FuncFlag", required = true)
    private int FuncFlag;

    /**
     * 回复的消息内容
     */
    @XmlElement(name = "Content", required = true)
    private String Content;

}
